from rest_framework import serializers

from UShop.models import TbGoods, Sku, Skuimage


class homeSerializer(serializers.ModelSerializer):
    class Meta:
        model = TbGoods
        fields = ['spu_id', 'spu_comment', ]


class skuSerializer(serializers.ModelSerializer):
    class Meta:
        model = Sku
        fields = ['sku_id','sku_name','sku_goods','sku_price','sku_sales',]


class SkuimageSerializer(serializers.ModelSerializer):
    class Meta:
        model = Skuimage
        fields = "__all__"






